import { formatYear, formatDate, formatBirthday } from "@/utils/format";

export default function (identity = 0) {
    const normalColumns = [
        {
            title: "员工姓名",
            dataIndex: "staffInfo",
            key: "staffName",
        },
        {
            title: "部门",
            dataIndex: "staffInfo",
            key: "departmentName",
        },
        {
            title: "调薪类型",
            dataIndex: "salaryType",
            key: "salaryType",
        },
        
        {
            title: "调整薪资",
            dataIndex: "newSalary",
            key: "newSalary",
        },
        {
            title: "调薪原因",
            dataIndex: "adjustReason",
            key: "adjustReason",
        },
        {
            title: "调薪时间",
            dataIndex: "date",
            key: "date",
        },
    ];
    const authColums = [];
    const colums =
        identity === 1 ? [...normalColumns, ...authColums] : normalColumns;
    return colums;
}
